import WHome from '@/components/WHome.vue'

export default {
	base  : process.env.BASE_URL,
	routes: [
		{
			path     : '/',
			name     : 'home',
			component: WHome,
			// redirect : '/template-management',
			children : [
				//项目流程设置 --------Project process settings
				{
					path     : 'template-management',
					component: () => import('@/views/project-process-settings/template-management.vue'),
					meta     : {title: '增加模版', belongTo: '/template-management'}
				},
				{
					path     : 'job-information-list/:id',
					component: () => import('@/views/project-process-settings/job-information-list.vue'),
					meta     : {title: '增加工作', belongTo: '/template-management'}
				},
				{
					path     : 'task-configuration/:id',
					component: () => import('@/views/project-process-settings/task-configuration.vue'),
					meta     : {title: '选择此工作所需任务(含审批)', belongTo: '/template-management'}
				},
				{
					path     : 'task-settings',
					component: () => import('@/views/project-process-settings/task-settings.vue'),
					meta     : {title: '增加任务(需选择要件)', belongTo: '/task-settings'}
				},
				//项目管理 --------Project management
				{
					path     : 'project-management',
					component: () => import('@/views/project-management/project-management.vue'),
					meta     : {title: '项目管理', belongTo: '/project-management'}
				},
				{
					path     : 'task-reporting',
					component: () => import('@/views/project-management/task-reporting.vue'),
					meta     : {title: '任务上报', belongTo: '/task-reporting'}
				},
				{
					path     : 'task-approval',
					component: () => import('@/views/project-management/task-approval.vue'),
					meta     : {title: '任务审批', belongTo: '/task-approval'}
				},
				{
					path     : 'historical-approval-records',
					component: () => import('@/views/project-management/historical-approval-records.vue'),
					meta     : {title: '历史审批记录', belongTo: '/historical-approval-records'}
				},
				{
					path     : 'archive-management',
					component: () => import('@/views/project-management/archive-management.vue'),
					meta     : {title: '归档管理', belongTo: '/archive-management'}
				},
				//项目进度管理 --------Project schedule management
				{
					path     : 'project-progress-tracking',
					component: () => import('@/views/project-schedule-management/project-progress-tracking.vue'),
					meta     : {title: '项目进度跟踪', belongTo: '/project-progress-tracking'}
				},
				{
					path     : 'task-supervisor-reminder',
					component: () => import('@/views/project-schedule-management/task-supervisor-reminder.vue'),
					meta     : {title: '任务督办提醒', belongTo: '/task-supervisor-reminder'}
				},
				{
					path     : 'task-timeout-warning',
					component: () => import('@/views/project-schedule-management/task-timeout-warning.vue'),
					meta     : {title: '任务超时预警', belongTo: '/task-timeout-warning'}
				},
				{
					path     : 'task-supervision-command',
					component: () => import('@/views/project-schedule-management/task-supervision-command.vue'),
					meta     : {title: '任务督办-下发', belongTo: '/task-supervision-command'}
				},
				{
					path     : 'task-supervision-remind',
					component: () => import('@/views/project-schedule-management/task-supervision-remind.vue'),
					meta     : {title: '任务督办-提醒', belongTo: '/task-supervision-remind'}
				},
				{
					path     : 'supervision-feedback',
					component: () => import('@/views/project-schedule-management/supervision-feedback.vue'),
					meta     : {title: '督办反馈', belongTo: '/supervision-feedback'}
				},
				//项目统计分析 --------Project statistical analysis
				{
					path     : 'statistics-of-projects-under-construction',
					component: () => import('@/views/project-statistical-analysis/statistics-of-projects-under-construction.vue'),
					meta     : {title: '在建项目统计', belongTo: '/statistics-of-projects-under-construction'}
				},
				{
					path     : 'statistics-of-archived-projects',
					component: () => import('@/views/project-statistical-analysis/statistics-of-archived-projects.vue'),
					meta     : {title: '已归档项目统计', belongTo: '/statistics-of-archived-projects'}
				},
				//时效管理 --------Time management
				{
					path     : 'task-aging-settings',
					component: () => import('@/views/time-management/task-aging-settings.vue'),
					meta     : {title: '模版时效查看', belongTo: '/task-aging-settings'}
				},
				{
					path     : 'task-aging-settings/:parentId/works',
					component: () => import('@/views/time-management/task-aging-work-settings.vue'),
					meta     : {title: '工作时效查看', belongTo: '/task-aging-settings'}
				},
				{
					path     : 'task-aging-settings/:parentId/tasks',
					component: () => import('@/views/time-management/task-aging-task-settings.vue'),
					meta     : {title: '任务时效设置', belongTo: '/task-aging-settings'}
				},
				//项目预警管理 --------Project early warning management
				{
					path     : 'overtime-warning-information-management',
					component: () => import('@/views/project-early-warning-management/overtime-warning-information-management.vue'),
					meta     : {title: '超时预警信息管理', belongTo: '/overtime-warning-information-management'}
				},
				{
					path     : 'analysis-of-timeliness-warning',
					component: () => import('@/views/project-early-warning-management/analysis-of-timeliness-warning.vue'),
					meta     : {title: '时效预警分析', belongTo: '/analysis-of-timeliness-warning'}
				},
				{
					path     : 'supervision-information-inquiry',
					component: () => import('@/views/project-early-warning-management/supervision-information-inquiry.vue'),
					meta     : {title: '督办信息查询', belongTo: '/supervision-information-inquiry'}
				},
				//基础数据管理 --------Basic data management
				{
					path     : 'configuration-of-important-information',
					component: () => import('@/views/basic-data-management/configuration-of-important-information.vue'),
					meta     : {title: '增加要件', belongTo: '/configuration-of-important-information'}
				},
				//zz-others
				{
					path     : 'fishbone-diagram/:id',
					component: () => import('@/views/zz-others/fishbone-diagram.vue'),
					meta     : {title: '项目进度跟踪明细', belongTo: '/project-progress-tracking'}
				},
				{
					path     : 'tree-task/:id',
					component: () => import('@/views/task-handle'),
					meta     : {title: '任务列表树', belongTo: '/task-reporting'},
				},
			]
		},
	]
}
